package cn.game.entry;

import java.util.LinkedList;
import java.util.List;

import cn.game.core.Cards;

public class Deck implements Cards{
	private List<Card> cards;// 一副牌的所有牌
	private String[] colors = new String[]{"club","diamond","heart","spade"};// 花色  梅，方，红，黑
	private int[] numbers = new int[]{1,2,3,4,5,6,7,8,9,10,11,12,13};// 牌面数字 A,2,3,4,5,6,7,8,9,10,J,Q,K
	public Deck(){
		cards = new LinkedList<Card>();
		for(String color : colors){
			for(int number : numbers){
				Card card = new Card(color,number);
				cards.add(card);
			}
		}
	}
	
	public List<Card> getCards() {
		return cards;
	}
	
}
